package com.fantasy.easy.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName biz_credit
 */
@TableName(value ="biz_credit")
public class BizCredit implements Serializable {
    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 
     */
    @TableField(value = "credit")
    private Integer credit;

    /**
     * 
     */
    @TableField(value = "hasCrime")
    private Integer hascrime;

    /**
     * 
     */
    @TableField(value = "isAccused")
    private Integer isaccused;

    /**
     * 
     */
    @TableField(value = "hasDebt")
    private Integer hasdebt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public Integer getCredit() {
        return credit;
    }

    /**
     * 
     */
    public void setCredit(Integer credit) {
        this.credit = credit;
    }

    /**
     * 
     */
    public Integer getHascrime() {
        return hascrime;
    }

    /**
     * 
     */
    public void setHascrime(Integer hascrime) {
        this.hascrime = hascrime;
    }

    /**
     * 
     */
    public Integer getIsaccused() {
        return isaccused;
    }

    /**
     * 
     */
    public void setIsaccused(Integer isaccused) {
        this.isaccused = isaccused;
    }

    /**
     * 
     */
    public Integer getHasdebt() {
        return hasdebt;
    }

    /**
     * 
     */
    public void setHasdebt(Integer hasdebt) {
        this.hasdebt = hasdebt;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BizCredit other = (BizCredit) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCredit() == null ? other.getCredit() == null : this.getCredit().equals(other.getCredit()))
            && (this.getHascrime() == null ? other.getHascrime() == null : this.getHascrime().equals(other.getHascrime()))
            && (this.getIsaccused() == null ? other.getIsaccused() == null : this.getIsaccused().equals(other.getIsaccused()))
            && (this.getHasdebt() == null ? other.getHasdebt() == null : this.getHasdebt().equals(other.getHasdebt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCredit() == null) ? 0 : getCredit().hashCode());
        result = prime * result + ((getHascrime() == null) ? 0 : getHascrime().hashCode());
        result = prime * result + ((getIsaccused() == null) ? 0 : getIsaccused().hashCode());
        result = prime * result + ((getHasdebt() == null) ? 0 : getHasdebt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", credit=").append(credit);
        sb.append(", hascrime=").append(hascrime);
        sb.append(", isaccused=").append(isaccused);
        sb.append(", hasdebt=").append(hasdebt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}